//package com.nft.admin.uploadController;
//
//import com.nft.common.conf.PicUploadResult;
//import com.nft.common.utils.PicUploadService;
//import com.nft.common.vo.Result;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.multipart.MultipartFile;
//
//@Controller
//@RequestMapping("/upload")
//public class UpdateController {
//    @Autowired
//    private PicUploadService picUploadService;
//    /**
//     * 上传图片
//     */
//    @RequestMapping("")
//    @PostMapping
//    private Result<PicUploadResult> getPicture(@RequestParam("file") MultipartFile file) {
//        PicUploadResult uploadResult = this.picUploadService.upload(file);
//        return Result.success(uploadResult);
//    }
//}
